package com.fumin.service;

import com.alibaba.fastjson.JSONArray;
import com.fumin.mapper.CapitalMapper;
import com.fumin.pojo.InvestmentRecord;

import java.util.List;

/**
 * Created by Lingo on 2018/3/8.
 */
public interface CapitalService extends CapitalMapper {
    JSONArray getTransactionRecords(String addr,Long user_pk);
    JSONArray getTransactionChargeRecords(String addr,Long user_pk);
    JSONArray getTransactionRefundRecords(String addr, Long user_pk);
    JSONArray getTransactionInvestmentRecords(String addr, Long user_pk);
    JSONArray getTransactionWithdrawRecords(String addr, Long user_pk);
    Float getBlanceByAddr(String addr);
    List<InvestmentRecord> getInvestmentRecords(String addr, Long user_pk);
    JSONArray souredByTimestamp(JSONArray input);

}
